import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_blog/model/Blog.dart';


class LeftContentItemWidget extends StatelessWidget {
  final Blog bean;

  LeftContentItemWidget(this.bean);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(bottom: 12),
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.all(Radius.circular(10)),
      ),
      padding: EdgeInsets.all(20),
      child: Column(
        //包裹一下
        mainAxisSize: MainAxisSize.min,
        children: [
          Image.asset(
            "${bean.image}",
            height: 400,
          ),
          SizedBox(
            height: 16,
          ),
          Text(
            "${bean.title}",
            style: TextStyle(
              fontWeight: FontWeight.w500,
              fontSize: 18,
            ),
          )
        ],
      ),
    );
  }
}
